package io.renren.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import io.renren.dao.TransationdetailDao;
import io.renren.entity.TransationdetailEntity;
import io.renren.service.TransationdetailService;

import java.util.List;


@Service("transationdetailService")
public class TransationdetailServiceImpl extends ServiceImpl<TransationdetailDao, TransationdetailEntity> implements TransationdetailService {

    @Override
    public List<TransationdetailEntity> getTransationdetail(int userid){
        List<TransationdetailEntity> list = baseMapper.getTransationdetail(userid);
        return list;
    }

    @Override
    public TransationdetailEntity getTransationBySn(String sn){
        TransationdetailEntity entity = baseMapper.getTransationBySn(sn);
        return entity;
    }

}
